<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title></title>
        <link rel="stylesheet" href="/app/admin/component/layui/css/layui.css" />
        <link rel="stylesheet" href="/app/admin/component/pear/css/pear.css" />
        <link rel="stylesheet" href="/app/admin/admin/css/reset.css" />
    </head>
    <body class="pear-container">
        <style>
            .layui-input-block input {
                width: 300px;
            }
        </style>

        <div class="layui-card">
            <div class="layui-card-body">

                <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <?php foreach ($groups as $key=>$group) : ?>
                    <li <?php if ($key == 0) : ?>class="layui-this" <?php endif ?>><?=$group['title']?></li>
                    <?php endforeach ?>
<!--                    <li>购买流程设置</li>-->
                </ul>
                <div class="layui-tab-content">

                    <!-- 基本信息 -->
                    <?php foreach ($groups as $group) : ?>
                    <?=$group['form']?>
                    <?php endforeach ?>

                </div>
            </div>

            </div>
        </div>


        <script src="/app/admin/component/layui/layui.js"></script>
        <script src="/app/admin/component/pear/pear.js"></script>
        <script src="/app/admin/admin/js/permission.js"></script>
        <script>

            // 基础设置
            layui.use(["upload", "layer", "popup"], function() {
                let $ = layui.$;
                let form = layui.form
                <?=$scripts?>
            });

            function showQuestion(question, id) {
                layer.open({
                    type: 4,
                    shade: [0.1, '#ffffff']
                    ,closeBtn: 2
                    ,content: [decodeURIComponent(question).replaceAll('+', ' '), '#' + id] //这里content是一个普通的String
                    ,shadeClose: true
                });
            }

        </script>

    </body>
</html>
